#{extends 'main.html' /}
#{set title:'Events in sprint' /}

<h2>
#{if sprint}
	<a style ="color:#400040;" href=" @{Projects.showProject(sprint.project.getEntityId())}">${sprint.project.name}</a> > <a style ="color:#400040;" href=" @{Events.showSprints(sprint.project.getEntityId())}">Sprints</a> > <a style ="color:#400040;" href="@{Events.showSprint(sprint.getEntityId())}">${sprint.name}</a> > Events
#{/if}
#{else}
	<a style ="color:#400040;" href=" @{Projects.showProject(project.getEntityId())}">${project.name}</a> > Events
#{/else}
</h2><hr/>
#{if events}
#{list items:events, as:'event'}
	<li>
	<a href="@{Events.showEvent(event.getEntityId())}">${event.name} </a>
	</li>
#{/list}
#{/if}
#{else}
There are no events for this
#{if sprint}
 sprint
#{/if}
#{else}
 project
#{/else}
.
#{/else}
